﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Mobile/Masters/MobileSite.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Mobile_Default" %>

<%@ Register src="Parts/HeadMobile.ascx" tagname="HeadMobile" tagprefix="uc1" %>
<%@ Register src="Parts/SearchBarMobile.ascx" tagname="SearchBarMobile" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Title" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Head" Runat="Server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadBody" runat="server">    
    <uc1:HeadMobile ID="HeadMobile1" runat="server" />
    <uc2:SearchBarMobile ID="SearchBarMobile1" runat="server" />
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" Runat="Server">
    <%--<div style="width:100%; text-align:center;margin:8px 0px 5px 0px;" id="featurebooksXXX">
			
	    <a href="">
            <img alt="" src="Images/Products/Button-830710-night-road.jpg" style="-webkit-border-radius: 7px;" title=""/>
        </a>		
	    <a href="">
            <img alt="" src="Images/Products/Button-740790-the-dragon-and-the-pearl.jpg" style="-webkit-border-radius: 7px;" title=""/>
        </a>		

	</div>--%>

	<h5 class="title">Mua nhiều nhất</h5>
	<div id="storelisting">
		<ul id="booklisting">


<% 
    List<TaiLieu> lst = new List<TaiLieu>();
    if (Session["MuaNhieus"] != null)
    {
        lst = (List<TaiLieu>)Session["MuaNhieus"];
    }
    
    //List<TaiLieu> lst = (List<TaiLieu>)Session["MuaNhieus"];

    for (int i = 0; i < lst.Count; i++)
    {
%>
<li>
    <a href="Product.aspx?ID=<%= lst[i].ProductID %>">
        <img border="1" src="<%= lst[i].ProductPhotoURL %>" 
            alt="<%= lst[i].ProductName %>" title="<%= lst[i].ProductName %>" />
        <span><%= lst[i].ProductName %><strong><%= lst[i].DanhMuc.CatName %></strong></span>
    </a>
</li>
<% 
    } 
%>

<%--<li>
    <a href="">
        <img width="39" height="44" border="1" src="Images/Products/000673175-min-1.jpg" alt="" title=""/>
        <span>A Universe from Nothing<strong>Krauss, Lawrence M.; Dawkins, Richard</strong></span>
    </a>
</li>--%>

	    </ul>
	</div>
</asp:Content>